package com.lianniu.web.baseService.user.service.impl;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.lianniu.web.base.BaseResult;
import com.lianniu.web.baseService.user.dao.ISuggestionDao;
import com.lianniu.web.baseService.user.model.SuggestionVo;
import com.lianniu.web.baseService.user.service.ISuggestionService;
@Service
public class SuggestionServiceImpl implements ISuggestionService{
	
	
	 private final static Logger logger = Logger.getLogger(FrontUserServiceImpl.class);
	 
	 @Resource
	 ISuggestionDao suggestDao;

	@Override
	public BaseResult addSuggest(SuggestionVo suggestVo) {
	    logger.info("addSuggest begin");
	    logger.info("addSuggest: input data check begin");
	    logger.info("addSuggest dictType:" +JSON.toJSONString(suggestVo));
	    logger.info("addSuggest: input data check end");
	    return BaseResult.success(suggestDao.addSuggestion(suggestVo));
	}

}
